<template>
  <div class="index">
    <div class="search">
    <div class="left"><van-button to="/cityList">上海</van-button><input type="text" placeholder="请输入小区或地址"></div>

    <div class="right"><van-icon style="padding-right:20px" name="wap-home-o" size="36" color="#fff" /></div>
    </div>
  <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
  <van-swipe-item>
    <a href="#" style="display: inline-block; width: 100%; height: 176px;">
      <img src="http://liufusong.top:8080/img/swiper/1.png" style="width: 100%; height: 212px; vertical-align: top;" alt="">
    </a>
    </van-swipe-item>
  <van-swipe-item>
    <a href="#" style="display: inline-block; width: 100%; height: 176px;">
      <img src="http://liufusong.top:8080/img/swiper/2.png" style="width: 100%; height: 212px; vertical-align: top;" alt="">
    </a>
  </van-swipe-item>
  <van-swipe-item>
    <a href="#" style="display: inline-block; width: 100%; height: 176px;">
      <img src="http://liufusong.top:8080/img/swiper/3.png" style="width: 100%; height: 212px; vertical-align: top;" alt="">
    </a>
  </van-swipe-item>
  </van-swipe>

  <div class="nav">
    <van-grid style="color:#00ae66">
  <van-grid-item  icon="wap-home-o" text="整租" />
  <van-grid-item icon="friends-o" text="合租" />
  <van-grid-item icon="search" text="地图找房" />
  <van-grid-item to="/release" icon="home-o" text="去出租" />
</van-grid>
  </div>

<div class="title">
  <span>租房小组</span>
  <span>更多</span>
</div>

<div class="btm">
<van-grid :column-num="2" direction="horizontal">
  <van-grid-item icon="photo-o" text="家住回龙观归属的感觉" />
  <van-grid-item icon="photo-o" text="宜居四五环大都市的生活" />
  <van-grid-item icon="photo-o" text="喧嚣三里屯繁华的背后" />
  <van-grid-item icon="photo-o" text="比邻十号线地铁心连心" />
</van-grid>
</div>
  </div>
</template>

<script>
export default {

}
</script>

<style scoped>
 .my-swipe .van-swipe-item {
    color: #fff;
    font-size: 20px;
    line-height: 212px;
    text-align: center;
    background-color: #39a9ed;
  }
  .index {
    position: relative;
    background-color: #f6f5f6;
  }
 
.search {
  position: absolute;
  display: flex;
  top:25px;
  width: 100%;
  padding: 0 10px;
  z-index: 2;
}
.left {
  flex:1
}
.left button{
  height: 35px;
  background-color: #fff;
  vertical-align: bottom;
}
.left input{
  height: 30px;
  padding-left: 30px;
  width: 69%;
  /* border-radius: 5px; */
  /* background-color: #fff; */
  z-index: 2;
}
.right{

  z-index: 2;
}
.title{
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  padding: 0 10px;
}
.title span:first-child{
  font-weight: 700;
}
.title span:last-child{
  font-size: 14px;
  color: #999;
}
.btm{
  margin-top: 15px;
}
</style>